/*
* @Author: Flora
* @Date:   2019-01-15 22:29:30
* @Last Modified by:   Flora
* @Last Modified time: 2019-01-18 08:44:06
*/
var _mm = require('util/mm.js');
var _user = {
	// 登录
	login : function(userInfo, resolve, reject){
		_mm.request({
			url : _mm.getServerUrl('/login.do'),
			data : userInfo,
			method : 'POST',
			success : resolve,
			error : reject
		});
	},
	logout : function(resolve, reject){
		_mm.request({
			url : _mm.getServerUrl('/logout.do'),
			success : resolve,
			error : reject
		});
	},
	getUser : function(resolve, reject){
		_mm.request({
			url : _mm.getServerUrl('/get_user.do'),
			success : resolve,
			error : reject
		});
	}
};
module.exports = _user;